package com.mdx.rest.repository;

import com.mdx.api.entity.CommunityUserRole;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author : jiagang
 * @date : Created in 2022/2/9 10:41
 */
@Repository
public interface UserRoleRepository extends JpaRepository<CommunityUserRole,Long> {
    List<CommunityUserRole> findAllByUserId(Long userId);
}
